//
//  GSVideoView.h
//  RtSDK
//
//  Created by Gaojin Hsu on 4/7/15.
//  Copyright (c) 2015 Geensee. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GSVideoFrame.h"


/**
 用于显示视频的View
 */
@interface GSVideoView : UIView

/**
 *  初始化VideoView实例
 *
 *  @param frame GSVideoView 的矩形区域
 *
 *  @return GSVideoView 实例对象
 */
- (id)initWithFrame:(CGRect)frame;


/**
 *  接受视频每一帧数据，并渲染
 *
 *  @param frame 视频帧数据
 *  @see GSVideoFrame
 */
- (void)renderVideoFrame:(GSVideoFrame*)frame;


//接收图片并且显示
//-(void)renderAsVideoByImage;

-(void)renderAsVideoByImage:(UIImage*)imageFrame;

@end
